//
//  HomeCollectionViewCell.m
//  U_card
//
//  Created by 陈如意 on 2018/3/19.
//  Copyright © 2018年 陈如意. All rights reserved.
//

#import "HomeCollectionViewCell.h"

@interface HomeCollectionViewCell()

@property (nonatomic, strong) UIImageView * bgImage;


@end

@implementation HomeCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initSubView];
        
    }
    return self;
}


- (void)initSubView
{
    self.bgImage = [UIImageView new];
    [self.contentView addSubview:self.bgImage];

    [self.bgImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.right.bottom.equalTo(self.contentView);
    }];

 
}

- (void)layoutSubviews{
    [super layoutSubviews];

}



- (void)getBgImage:(NSString *)imageName{
    self.bgImage.image = [UIImage imageNamed:imageName];

}


@end
